<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		.color{
			background-color: red;
		}
		div{
			height: 200px;
			width: 200px;
			border: 1px solid black;
		}
	</style>
</head>
<body>
	<div></div>
</body>
	<script type="text/javascript" src = "js/jquery-3.0.0.min.js"></script>
	<script type="text/javascript">
	var color = $('.color');
	$('div').on('click',function () {
		$('div').addClass("color");

	})
	</script>
</html>